const { spawn } = require('child_process');

export function createPySheme() {
  const python = spawn('python', ['python/asr.py']);

  python.stdout.on('data', (data: any) => {
    console.log(`Python Output: ${data}`);
  });

  python.stderr.on('data', (data: any) => {
    console.error(`Python Error: ${data}`);
  });

  python.on('close', (code: any) => {
    console.log(`Python Exit: ${code}`);
  });
}

